package jp.co.jmas.jmasvideo.validator;

import static jp.co.jmas.jmasvideo.validator.ValidatorHelper.*;

import java.util.ArrayList;
import java.util.List;

import jp.co.jmas.jmasvideo.dao.ErrorMessage;
import jp.co.jmas.jmasvideo.dao.Video;
import jp.co.jmas.jmasvideo.exception.ValidationException;

public class VideoValidator {
	public static int MAX_LEN_KEY = 200;

	public static void validate(Video video) throws ValidationException {
		List<ErrorMessage> messageList = new ArrayList<ErrorMessage>();

		// key
		validateString(
				messageList,
				"key",
				video.getKey(),
				1,
				MAX_LEN_KEY,
				null,
				"Not specified",
				"Too short",
				"Too long",
				"Invalid");

		//
	}
}
